package game;

import java.awt.Color;

public class GravityField extends Field {
	public static final long serialVersionUID = 1L;
	protected float gravity;

	public GravityField(Level g, int x, int y, int width, int height, Color c, float grav){
		super(g, x, y, width, height, c);
		gravity = grav;
	}
	
	@Override
	public void calculateIntersectEffects(GameRectangle g) {
		if(g instanceof Sprite){
			((Sprite) g).fxGravity = gravity;
		}
	}

	@Override
	public void update(){}
}
